import { defineStore } from 'pinia'
// import { ref, reactive, computed } from 'vue'
import axios from 'axios';
export const useShopStore = defineStore('shop', {
    state: () => {
        return { schoollist: [] }
    },
    // 也可以定义为
    // state: () => ({ count: 0 })
    actions: {
        initschoollist(state) {
            axios.get('https://api.i-lynn.cn/college').then(res => {
                this.schoollist = res.data.data.list1
            })
        },
    },
})